/*
 *  textscreen.h
 *  xD-OS
 *
 *  Created by James Johns on 22/07/2009.
 *  Copyright 2009 xD-Dunce. All rights reserved.
 *
 */

#include "global.h"

#ifndef TEXTSCREEN_H
#define TEXTSCREEN_H

#define BLACK			0x00
#define BLUE			0x01
#define GREEN			0x02
#define CYAN			0x03
#define RED				0x04
#define MAGENTA			0x05
#define BROWN			0x06
#define LIGHT_GREY		0x07
#define DARK_GREY		0x08
#define LIGHT_BLUE		0x09
#define LIGHT_GREEN		0x0A
#define LIGHT_CYAN		0x0B
#define LIGHT_RED		0x0C
#define LIGHT_MAGENTA	0x0D
#define LIGHT_BROWN		0x0E
#define WHITE			0x0F


// initialisation functions
void initScreen();
void clearScreen();
void updateCursor();

// printing functions
void printChar(Byte c);
void printString(Byte *string);
void printHex(dWord h);
void newLine();


Byte cursorX, cursorY;
Byte *screen;
Byte attributes;

#endif
